import request from '@/utils/request'

// 查询生产流程单列表
export function tPrdProcess(data) {
  return request({
    url: '/tPrdProcess/queryProcessList',
    method: 'post',
    data
  })
}
// 查询生产流程单详情
export function queryProcessDetails(params) {
  return request({
    url: '/tPrdProcess/queryProcessDetails',
    method: 'get',
    params
  })
}
// 获取组别
export function queryWorkshopGroupList(data) {
  return request({
    url: '/tWorkshopGroup/queryWorkshopGroupList',
    method: 'post',
    data
  })
}
// 获取工序
export function tWorkshopGroupDetails(data) {
  return request({
    url: '/tWorkshopGroupDetails/queryWorkshopGroupDetailList',
    method: 'post',
    data
  })
}
// 修改生产流程单
export function updateProcess(data) {
  return request({
    url: '/tPrdProcess/updateProcess',
    method: 'put',
    data
  })
}
// 删除生产流程单
export function processDelete(data) {
  return request({
    url: '/tPrdProcess/processDelete',
    method: 'put',
    data
  })
}
// 反提交生产流程单
export function processAuSubmit(data) {
  return request({
    url: '/tPrdProcess/processAuSubmit',
    method: 'put',
    data
  })
}
// 提交生产流程单
export function processSubmit(data) {
  return request({
    url: '/tPrdProcess/processSubmit',
    method: 'put',
    data
  })
}
// 反审核生产流程单
export function processUnAudit(data) {
  return request({
    url: '/tPrdProcess/processUnAudit',
    method: 'put',
    data
  })
}
// 审核生产流程单
export function processAudit(data) {
  return request({
    url: '/tPrdProcess/processAudit',
    method: 'put',
    data
  })
}
// 查询报工单列表
export function queryWorkReportList(data) {
  return request({
    url: '/tPrdWorkreport/queryWorkReportList',
    method: 'post',
    data
  })
}
// 流程单下推工艺单
export function insertWorkReport(data) {
  return request({
    url: '/tPrdWorkreport/insertWorkReport',
    method: 'post',
    data
  })
}
// 查询工艺单详情
export function queryWorkReportDetails(params) {
  return request({
    url: '/tPrdWorkreport/queryWorkReportDetails',
    method: 'get',
    params
  })
}
// 修改工艺单
export function updateWorkReport(data) {
  return request({
    url: '/tPrdWorkreport/updateWorkReport',
    method: 'put',
    data
  })
}
// 删除工艺单
export function workReportDelete(data) {
  return request({
    url: '/tPrdWorkreport/workReportDelete',
    method: 'put',
    data
  })
}
// 反提交工艺单
export function workReportAuSubmit(data) {
  return request({
    url: '/tPrdWorkreport/workReportAuSubmit',
    method: 'put',
    data
  })
}
// 提交工艺单
export function workReportSubmit(data) {
  return request({
    url: '/tPrdWorkreport/workReportSubmit',
    method: 'put',
    data
  })
}
// 反审核工艺单
export function workReportUnAudit(data) {
  return request({
    url: '/tPrdWorkreport/workReportUnAudit',
    method: 'put',
    data
  })
}
// 审核工艺单
export function workReportAudit(data) {
  return request({
    url: '/tPrdWorkreport/workReportAudit',
    method: 'put',
    data
  })
}
// 外包工序单列表
export function queryOutsourceList(data) {
  return request({
    url: '/tPrdOutsource/queryOutsourceList',
    method: 'post',
    data
  })
}
// 外包工序单修改
export function updateOutsource(data) {
  return request({
    url: '/tPrdOutsource/updateOutsource',
    method: 'put',
    data
  })
}
// 外包工序单详情
export function queryOutsourceDetails(params) {
  return request({
    url: '/tPrdOutsource/queryOutsourceDetails',
    method: 'get',
    params
  })
}
// 外包工序单反提交
export function outsourceAuSubmit(data) {
  return request({
    url: '/tPrdOutsource/outsourceAuSubmit',
    method: 'put',
    data
  })
}
// 外包工序单提交
export function outsourceSubmit(data) {
  return request({
    url: '/tPrdOutsource/outsourceSubmit',
    method: 'put',
    data
  })
}
// 外包工序单反审核
export function outsourceUnAudit(data) {
  return request({
    url: '/tPrdOutsource/outsourceUnAudit',
    method: 'put',
    data
  })
}
// 外包工序单审核
export function outsourceAudit(data) {
  return request({
    url: '/tPrdOutsource/outsourceAudit',
    method: 'put',
    data
  })
}
// 外包工序单删除
export function outsourceDelete(data) {
  return request({
    url: '/tPrdOutsource/outsourceDelete',
    method: 'delete',
    data
  })
}
// 选取供应商获取数据
export function queryWorkSupplierInfo(data) {
  return request({
    url: '/tWorksupplier/queryWorkSupplierInfo',
    method: 'post',
    data
  })
}
// 外包单下推标准应付单
export function pushToFinPayableFromMulOutSource(data) {
  return request({
    url: '/tFinPayable/pushToFinPayableFromOutSource',
    method: 'post',
    data
  })
}
// 外包入库单列表
export function queryOutsourceInStockList(data) {
  return request({
    url: '/tPrdOutsourceInStock/queryOutsourceInStockList',
    method: 'post',
    data
  })
}
// 外包入库单详情
export function queryOutsourceInStockDetails(params) {
  return request({
    url: '/tPrdOutsourceInStock/queryOutsourceInStockDetails',
    method: 'get',
    params
  })
}
// 外包单下推外包入库单情
export function pushOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/pushOutsourceInStock',
    method: 'post',
    data
  })
}
// 外包入库单更新
export function updateOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/updateOutsourceInStock',
    method: 'post',
    data
  })
}
// 外包入库单删除
export function deleteOutsourceInStocks(data) {
  return request({
    url: '/tPrdOutsourceInStock/deleteOutsourceInStocks',
    method: 'post',
    data
  })
}
// 外包入库单反提交
export function nosubmitOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/nosubmitOutsourceInStock',
    method: 'post',
    data
  })
}
// 外包入库单提交
export function submitOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/submitOutsourceInStock',
    method: 'post',
    data
  })
}
// 外包入库单反审核
export function noreviewOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/noreviewOutsourceInStock',
    method: 'post',
    data
  })
}
// 外包入库单审核
export function reviewOutsourceInStock(data) {
  return request({
    url: '/tPrdOutsourceInStock/reviewOutsourceInStock',
    method: 'post',
    data
  })
}
// 制造价格分析表
export function queryPrdInStockReportForm(data) {
  return request({
    url: '/tPrdInstock/queryPrdInStockReportForm',
    method: 'post',
    data
  })
}
// 工程BOM自动算料
// 更新按钮
export function updateProjectMaterial(data) {
  return request({
    url: '/tEngBom//updateProjectMaterial',
    method: 'post',
    data
  })
}
// 自动运算
export function autoBomMaterial(data) {
  return request({
    url: '/tEngBom/autoBomMaterial',
    method: 'post',
    data
  })
}
// 保存
export function insertProjectMaterial(data) {
  return request({
    url: '/tEngBom/insertProjectMaterial',
    method: 'post',
    data
  })
}
// 修改
export function saveProjectMaterial(data) {
  return request({
    url: '/tEngBom/saveProjectMaterial',
    method: 'post',
    data
  })
}
// 列表
export function queryProjectMaterialList(data) {
  return request({
    url: '/tEngBom/queryProjectMaterialList',
    method: 'post',
    data
  })
}
// 详情
export function queryProjectMaterial(params) {
  return request({
    url: '/tEngBom/queryProjectMaterial',
    method: 'get',
    params
  })
}
